# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libxt
pkgver=1.3.0
pkgrel=4
pkgdesc="X11 toolkit intrinsics library"
url="https://xorg.freedesktop.org/"
arch="all"
license="MIT"
subpackages="$pkgname-dev $pkgname-doc"
depends_dev="libsm-dev"
makedepends="$depends_dev libice-dev libx11-dev util-macros xorgproto"
checkdepends="glib-dev"
source="https://www.x.org/releases/individual/lib/libXt-$pkgver.tar.xz"
builddir="$srcdir"/libXt-$pkgver

build() {
	CFLAGS="$CFLAGS -flto=auto" \
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--disable-static
	make
}

check() {
	make check
}

package() {
	make -j1 DESTDIR="$pkgdir" install
}

sha512sums="
64c5978655135b925c3aaad86b1aa6a3f3b57ad8b3592bf142be616b8aa339a02c2fc7badfab9564ea8076ea8f37acfe31709ed528f5a1d251f2d116aa074118  libXt-1.3.0.tar.xz
"
